.svg-bg(@svg) {
  @svg-content: escape(@svg);
  background-image: url('data:image/svg+xml,@{svg-content}');
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.clearfix() {
  &::after {
    content: '';
    display: table;
    clear: both;
  }
}

.safe-area(@val:68rpx) {
  padding-bottom: @val;
  padding-bottom: calc(@val / 2 + constant(safe-area-inset-bottom)); /* no */
  padding-bottom: calc(@val / 2 + env(safe-area-inset-bottom)); /* no */
}
